import { createRouter, createWebHistory } from 'vue-router';
import LayOut from '@/layout/index.vue';
const routes = [
	{
		path: '/',
		name: 'layout',
		component: LayOut,
		redirect: '/home',
		children: [
			{
				path: '/home',
				name: 'home',
				component: () => import('@/views/home/index.vue'),
			},
			{
				path: '/equipment',
				name: 'equipment',
				component: () => import('@/views/equipment/index.vue'),
			},
			{
				path: '/fast',
				name: 'fast',
				component: () => import('@/views/fast/index.vue'),
			},
			{
				path: '/path',
				name: 'path',
				component: () => import('@/views/path/index.vue'),
			},
			{
				path: '/environment',
				name: 'environment',
				component: () => import('@/views/environment/index.vue'),
			},
			// {
			// 	path: '/map',
			// 	name: 'map',
			// 	component: () => import('@/views/map/index.vue'),
			// },
			{
				path: '/three',
				name: 'three',
				component: () => import('@/views/three/index.vue'),
			},
		],
	},
];

const router = createRouter({
	history: createWebHistory(),
	routes: routes,
});

export default router;
